<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>折叠面板</title>
  <link rel="stylesheet" href="../base.css">
  <link rel="stylesheet" href="./12.css">
</head>

<body>
  <div id="app">
    <h1>Frequently Asked Questions</h1>
    <div class="fqa">
      <div class="fqa_item">
        <div class="question">
          <span>Why shouldn't we trust atoms?</span>
          <div class="btn">
            <span></span>
            <span></span>
          </div>
        </div>
        <div class="answer">They make up everything</div>
      </div>
      <div class="fqa_item">
        <div class="question">
          <span>What do you call someone with no body and no nose?</span>
          <div class="btn">
            <span></span>
            <span></span>
          </div>
        </div>
        <div class="answer">They make up everything</div>
      </div>
      <div class="fqa_item">
        <div class="question">
          <span>What's the object-oriented way to become wealthy?</span>
          <div class="btn">
            <span></span>
            <span></span>
          </div>
        </div>
        <div class="answer">Inheritance.</div>
      </div>
    </div>



    <div>
      <div class="radio">
        <div>只展开一个面板：</div>
        <div class="radio_item">
          <label for="no">否</label>
          <input class="input_radio" type="radio" value="0"  id="no" onchange="radioChange(this)">
        </div>
        <div class="radio_item">
          <label for="yes">是</label>
          <input class="input_radio" type="radio" value="1" id="yes" checked onchange="radioChange(this)">
        </div>
      </div>

      <div>
        <span>默认展开(索引)：</span>
        <input type="number" class="input_number" oninput="inputHandle(this)">
      </div>
    </div>
  </div>
  <script src="./12.js"></script>
</body>

</html>